<?php

/*
 * 路由访问配置
 * @Author: lovefc 
 * @Date: 2019-09-16 15:52:35 
 * @Last Modified by: lovefc
 * @Last Modified time: 2019-10-25 14:49:48
 */

return [

    // 默认访问,这里有参数$a，可以在get中用/?a=123来改变
	
    'default' => ['\Main\Api\App\view','index'],
	
    /** 前台 **/
    '#^index.html?(.*)$#' => ['\Main\Api\App\view','index'],	

    '#^class.html?(.*)$#' => ['\Main\Api\App\view','article_list'],
	

	'#^recommend.html?(.*)$#'  => ['\Main\Api\App\view','recommend'],		
	
    /** 微语 **/
    '#^weiyu.html?(.*)$#' => ['\Main\Api\App\view','weiyu'],		

	'#^view/([0-9]*).html?(.*)$#'  => ['\Main\Api\App\view','article'],	
	
	'#^link.html?(.*)$#'  => ['\Main\Api\App\view','links'],	

	'#^about.html?(.*)$#'  => ['\Main\Api\App\view','about'],	
	
	'#^page/([\w\W]*).html?(.*)$#' => ['\Main\Api\App\view','readtemplate'],	

	'#^disuss.html?(.*)$#' => ['\Main\Api\App\post','disuss'],		
	
    '#^rss.xml?(.*)$#' => ['\Main\Api\App\view', 'rssIndex'],	
	
    /** 后台api **/
    'admin' => '\Main\Api\Admin\\',
	
	// 公告接口api
    'common' => 'Main\Api\Common\\',	
	
	// 后台登录api
	'#^admin.login.html$#' => ['Main\Api\Admin\login','index']
	
];
